package com.tomorrowbbs.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 文章板块信息对象 forum_board
 * 
 * @author zjz
 * @date 2024-11-09
 */
public class ForumBoard
{
    private static final long serialVersionUID = 1L;

    /** 板块ID */
    private Long boardId;

    /** 父级板块ID */
    private Long pBoardId;

    /** 板块名 */
    private String boardName;

    /** 封面 */
    private String cover;

    /** 描述 */
    private String boardDesc;

    /** 排序 */
    private Long sort;

    /** 0:只允许管理员发帖 1:任何人可以发帖 */
    private Integer postType;

    private String OrderBy;

    private List<ForumBoard> children;

    public String getOrderBy() {
        return OrderBy;
    }

    public void setOrderBy(String orderBy) {
        OrderBy = orderBy;
    }

    public List<ForumBoard> getChildren() {
        return children;
    }

    public void setChildren(List<ForumBoard> children) {
        this.children = children;
    }

    public void setBoardId(Long boardId)
    {
        this.boardId = boardId;
    }

    public Long getBoardId() 
    {
        return boardId;
    }
    public void setpBoardId(Long pBoardId) 
    {
        this.pBoardId = pBoardId;
    }

    public Long getpBoardId() 
    {
        return pBoardId;
    }
    public void setBoardName(String boardName) 
    {
        this.boardName = boardName;
    }

    public String getBoardName() 
    {
        return boardName;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setBoardDesc(String boardDesc) 
    {
        this.boardDesc = boardDesc;
    }

    public String getBoardDesc() 
    {
        return boardDesc;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setPostType(Integer postType) 
    {
        this.postType = postType;
    }

    public Integer getPostType() 
    {
        return postType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("boardId", getBoardId())
            .append("pBoardId", getpBoardId())
            .append("boardName", getBoardName())
            .append("cover", getCover())
            .append("boardDesc", getBoardDesc())
            .append("sort", getSort())
            .append("postType", getPostType())
            .toString();
    }
}
